Resource URL: /platform/<<version=3>>/healthcheck/evaluations/<ID>

    Overview: This resource applies the standard collection pattern to
              individual evaluations.

     Methods: GET, PUT, DELETE

********************************************************************************

Method GET: Retrieve individual evaluation.

       URL: GET /platform/<<version=3>>/healthcheck/evaluations/<ID>

There are no query arguments for this method.

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "additionalProperties": false, 
      "type": "object", 
      "properties": {
        "evaluations": {
          "minItems": 0, 
          "items": {
            "type": "object", 
            "description": "Evaluation Request/Result", 
            "properties": {
              "parameters": {
                "type": "object", 
                "description": "Parameters supplied for this evaluation"
              }, 
              "overrides": {
                "items": {
                  "type": "object", 
                  "description": "Overrides for item pass_status, freshness and thresholds", 
                  "properties": {
                    "thresholds": {
                      "type": "object", 
                      "description": "Overrides for status thresholds", 
                      "properties": {
                        "warning": {
                          "minimum": 0, 
                          "type": "integer", 
                          "description": "Minimum value for WARNING - must be > critical", 
                          "maximum": 100
                        }, 
                        "critical": {
                          "minimum": 0, 
                          "type": "integer", 
                          "description": "Minimum value for CRITICAL - below this EMERGENCY", 
                          "maximum": 100
                        }, 
                        "ok": {
                          "minimum": 0, 
                          "type": "integer", 
                          "description": "Minimum value for OK - must be > warning", 
                          "maximum": 100
                        }
                      }
                    }, 
                    "freshness": {
                      "minimum": 0, 
                      "type": "integer", 
                      "description": "Optional freshness override"
                    }, 
                    "id": {
                      "type": "string", 
                      "description": "Id of Item to which override applies"
                    }, 
                    "pass_status": {
                      "enum": [
                        "OK", 
                        "WARNING", 
                        "CRITICAL", 
                        "EMERGENCY"
                      ], 
                      "type": "string", 
                      "description": "Optional pass status override"
                    }
                  }
                }, 
                "type": "array", 
                "description": "Optional overrides for thresholds etc."
              }, 
              "checklist_id": {
                "type": "string", 
                "description": "Checklist to be run"
              }, 
              "result": {
                "enum": [
                  "PASS", 
                  "FAIL"
                ], 
                "type": "string", 
                "description": "Overall result of evaluation - only if COMPLETED"
              }, 
              "run_status": {
                "type": "string", 
                "enum": [
                  "QUEUED", 
                  "RUNNING", 
                  "PAUSED", 
                  "FAILED", 
                  "COMPLETED"
                ], 
                "desciption": "Execution status"
              }, 
              "id": {
                "type": "string", 
                "description": "Unique identifier"
              }, 
              "details": {
                "items": {
                  "type": "object", 
                  "description": "The result of an item evaluation", 
                  "properties": {
                    "node": {
                      "type": "string", 
                      "description": "Either 'cluster' or an lnn"
                    }, 
                    "status": {
                      "enum": [
                        "OK", 
                        "WARNING", 
                        "CRITICAL", 
                        "EMERGENCY", 
                        "UNSUPPORTED", 
                        "ERROR"
                      ], 
                      "type": "string", 
                      "description": "Health status based on default thresholds"
                    }, 
                    "hash": {
                      "type": "string", 
                      "description": "Unique identifier"
                    }, 
                    "parameters": {
                      "type": "object", 
                      "description": "The parameters used in this item evaluation"
                    }, 
                    "value": {
                      "minimum": 0, 
                      "type": "integer", 
                      "description": "Normalised measured value 0 (bad) to 100 (perfect)", 
                      "maximum": 100
                    }, 
                    "details": {
                      "type": "object", 
                      "description": "Optional details of the evaluation - raw data"
                    }, 
                    "id": {
                      "type": "string", 
                      "description": "Unique identifier of item"
                    }
                  }
                }, 
                "type": "array", 
                "description": "Evaluation results by item - only if COMPLETED"
              }
            }
          }, 
          "type": "array", 
          "maxItems": 4294967295
        }
      }
    }
  ]
}

********************************************************************************

Method PUT: Pause or resume an evaluation.

       URL: PUT /platform/<<version=3>>/healthcheck/evaluations/<ID>

There are no query arguments for this method.

PUT request body schema:
{
  "type": "object", 
  "description": "Pause/Resume control", 
  "properties": {
    "action": {
      "enum": [
        "pause", 
        "resume"
      ], 
      "type": "string", 
      "description": "Pause or Resume"
    }
  }
}

There is no JSON response body for this method.

********************************************************************************

Method DELETE: Cancel an evaluation.

          URL: DELETE /platform/<<version=3>>/healthcheck/evaluations/<ID>

There are no query arguments for this method.

There is no JSON response body for this method.
